package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectAllEmpDTO;
import com.itheima.tlias84.dto.SelectEmpDetailDTO;
import com.itheima.tlias84.entity.Emp;
import com.itheima.tlias84.po.InsertEmpParam;
import com.itheima.tlias84.po.SelectEmpPageParam;
import com.itheima.tlias84.po.UpdateEmpParam;
import com.itheima.tlias84.utils.ResultUtil;


import java.util.List;

public interface EmpService {
    ResultUtil selectEmpByPage(SelectEmpPageParam param);

//    int insertOne(Emp emp);

    int batchDelete(List<Integer> ids);

    int insertEmp(InsertEmpParam param);

    SelectEmpDetailDTO selectEmpByid(Integer id);

    int updateEmp( UpdateEmpParam param);

    List<SelectAllEmpDTO> selectAllEmp();
}
